<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p id="tnum">5</p>
</body>
<script type='text/javascript' src='public/wap/js/jquery.js'></script>
<script>
    $(function () {
        time_jump(5,1);
    });
    function time_jump(count,order_id) {

        setTimeout(function (){
            count--;
            if(count > 0) {
                $('#tnum').html(count);
                time_jump(count,order_id);
            } else {
                $("#tnum").html("end");
            }
        }, 1000);
    }


</script>
</html>